from stock.Analyse.analyse import StockAnalyse

class StockAnalyseNews(StockAnalyse):
    def __init__(self):
        super(StockAnalyseNews, self).__init__()
        self.coll_v = self.coll_value_f("news")

    def news(self, top):
        self.news = self.coll_v.find().skip(top)

    def print_news(self):
        for i in self.news:
            print("time: ", i["time"], ", title: ", i["title"], ", url: ", i["url"])
